package cn.itcast.nems.studentrecord.dto.studentrecord;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 创建学籍消息对象
 *
 * @author liyong
 * create: 2023-11-20 16:02:06
 **/
@Data
public class StudentRecordMessageDTO {
    /**
     * 学籍ID
     */
    private String studentRecordId;
    /**
     * 班级ID
     */
    private Integer clazzId ;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime bizDateTime;

    /**
     * 主租户
     */
    private Integer tenantId;

    /**
     * 子住户
     */
    private Integer subtenantId;

    /**
     * 当前操作者email
     */
    private String operatorEmail;

}
